home *** CD-ROM | disk | FTP | other *** search
/ Clickx 53 / Clickx 53.iso / software / onmisbaretool / feedreaderv313 / stylesheet / emailstyle.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2008-01-01  |  4.2 KB  |  201 lines

  1. ∩╗┐<?xml version="1.0" ?>
  2.  
  3. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  4.                 xmlns:feed="http://www.w3.org/2005/Atom"
  5.                 xmlns:fr="http://www.feedreader.com/ns/3.0"
  6.                 xmlns:frc="http://www.feedreader.com/ns/3.0/frc"
  7.                 version="1.0">
  8. <xsl:output method="html" />
  9.  
  10. <xsl:template match="/">
  11.  
  12. <html>
  13.   <head>
  14.     <title><xsl:value-of select="/feed:feed/feed:title"/></title>
  15.     <link rel="stylesheet" href="atom.css"/>
  16.     <style>
  17.  
  18. body {
  19.  font-family: verdana, tahoma;
  20.  font-size: 0.7em;
  21.  line-height: 1.3em;
  22.  padding: 0;
  23.  margin: 0;
  24. }
  25.  
  26.  
  27. a, a:link, a:active, a:visited {
  28.  text-decoration: none;
  29.  color: #0088ff;
  30. }
  31.  
  32. div.entry {
  33.  padding: 0 20px 20px 25px;
  34.  border-bottom: 1px solid #ddd;
  35. }
  36.  
  37. div.content img {
  38. }
  39.  
  40. div.active {
  41.  background-color: #f1f5fa;;
  42. }
  43.  
  44. .read .title a {
  45.  color: #aaa;
  46. }
  47.  
  48.  
  49. .read .content {
  50.  color: #555;
  51. }
  52.  
  53. div.entry .read .title a {
  54.  color: gray;
  55. }
  56.  
  57. .header {
  58.  padding-top: 20px;
  59.  margin: 0 0 0.2em 0;
  60. }
  61.  
  62. .title {
  63.  font-size: 1.6em;
  64.  font-family: arial, verdana, tahoma;
  65.  font-weight: bold;
  66.  letter-spacing: -1px;
  67.  line-height: 1.1em;
  68. }
  69.  
  70. div.details {
  71.  color: gray;
  72.  margin-bottom: 0.5em;
  73. }
  74. div.clear {
  75.  clear:both;
  76.  height: 1px;
  77.  width: 1px;
  78.  font-size: 1px;
  79.  line-height: 1px;
  80. }
  81. span.modified, span.author, span.category {
  82. }
  83.  
  84. .status a {
  85.  display:block;
  86.  line-height: 0;
  87.  font-size: 0;
  88.  width: 8px; 
  89.  height: 8px;
  90.  margin-top: -1.5em;
  91.  background-repeat: no-repeat;
  92. }
  93.  
  94. .read .status a {
  95. }
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102. </style>
  103.     
  104. <base>    
  105. <xsl:attribute name="href"><xsl:value-of select="/feed:feed/feed:entry/feed:source/feed:link[@rel='alternate'][1]/@href"/>/</xsl:attribute>
  106. </base>
  107.  
  108.   </head>    
  109.   <body>
  110.   <xsl:apply-templates select="feed:feed"/>
  111.   </body>
  112. </html>
  113. </xsl:template>
  114.  
  115. <xsl:template match="feed:feed">
  116.   <xsl:apply-templates select="feed:entry"/>
  117. </xsl:template>
  118.  
  119. <xsl:template match="feed:entry">
  120.  
  121.     <div class="entry">
  122.         <xsl:attribute name="id">article<xsl:value-of select="fr:item_id"/></xsl:attribute>
  123.         <xsl:if test="fr:rtlEnabled = 1">
  124.             <xsl:attribute name="style">direction:RTL;</xsl:attribute>
  125.         </xsl:if>
  126.         <xsl:if test="fr:status = 1">
  127.             <xsl:attribute name="class">entry read</xsl:attribute>
  128.         </xsl:if>
  129.                 
  130.         <div class="header">
  131.  
  132.         <span class="title">
  133.             <a>
  134.             <xsl:attribute name="href"><xsl:value-of select="feed:link/@href"/></xsl:attribute>
  135.             <xsl:value-of select="feed:title"/>
  136.             </a>
  137.         </span>
  138.  
  139.           <span class="status">
  140.           <xsl:attribute name="style">float:right;</xsl:attribute>
  141.           <xsl:if test="fr:rtlEnabled = 1">
  142.             <xsl:attribute name="style">float:left;</xsl:attribute>
  143.           </xsl:if>
  144.           <xsl:if test="fr:rtlEnabled != 1">
  145.             <xsl:attribute name="style">float:right;</xsl:attribute>
  146.           </xsl:if>
  147.           
  148.           </span>
  149.         </div>
  150.     
  151.                 <div class="details">
  152.              <span class="updated"><xsl:value-of select="fr:updated"/>, </span>        
  153.             <xsl:if test="feed:author"> 
  154.                   <span class="author">
  155.                 <xsl:apply-templates select="feed:author"/>
  156.                 </span>
  157.             </xsl:if>
  158.                         
  159.             <xsl:if test="feed:category">
  160.                   <span class="category"> 
  161.                   <xsl:apply-templates select="feed:category"/>
  162.                 </span>
  163.                     </xsl:if>
  164.             <xsl:if test="feed:source">
  165.                   <span class="source"> 
  166.                 <a>
  167.                 <xsl:attribute name="href">
  168.                 <!-- <xsl:for-each select = "feed:source/feed:link[@rel='alternate']"> --> 
  169.                     <xsl:value-of select = "feed:source/feed:link[@rel='alternate'][1]/@href"/> 
  170.                     <!-- </xsl:for-each> -->
  171.                 </xsl:attribute>
  172.                 <xsl:value-of select="feed:source/feed:title"/>
  173.                 </a>
  174.                 </span>
  175.                                 
  176.                     </xsl:if>
  177.         </div>
  178.  
  179.     <xsl:if test="feed:content">
  180.         <div class="content">
  181.             <xsl:value-of disable-output-escaping="yes" select="feed:content"/>
  182.         </div>
  183.     </xsl:if>
  184.     <div class="clear" />
  185.     </div>
  186.  
  187. </xsl:template>
  188.  
  189. <xsl:template match="feed:category">
  190.   <a>
  191.   <xsl:attribute name="href">#</xsl:attribute>
  192.   <xsl:value-of select="./@term"/>
  193.   </a>, 
  194. </xsl:template>
  195.  
  196. <xsl:template match="feed:author">
  197.   <xsl:value-of select="feed:name"/>, 
  198. </xsl:template>
  199.  
  200. </xsl:stylesheet>
  201.